package com.eva.androidlibrary.api.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author eva
 * @date 16/6/13
 */
public class ProductImageList extends BaseBean implements Parcelable {

    private List<ProductImage> items;
    private int n;
    private int total;
    private int p;

    public List<ProductImage> getItems() {
        return items;
    }

    public void setItems(List<ProductImage> items) {
        this.items = items;
    }

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getP() {
        return p;
    }

    public void setP(int p) {
        this.p = p;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(items);
        dest.writeInt(this.n);
        dest.writeInt(this.total);
        dest.writeInt(this.p);
    }

    public ProductImageList() {
    }

    protected ProductImageList(Parcel in) {
        this.items = in.createTypedArrayList(ProductImage.CREATOR);
        this.n = in.readInt();
        this.total = in.readInt();
        this.p = in.readInt();
    }

    public static final Parcelable.Creator<ProductImageList> CREATOR = new Parcelable.Creator<ProductImageList>() {
        public ProductImageList createFromParcel(Parcel source) {
            return new ProductImageList(source);
        }

        public ProductImageList[] newArray(int size) {
            return new ProductImageList[size];
        }
    };
}
